package com.es.www.kyl.bean.res.client;

import com.es.www.kyl.bean.res.LoginRes;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Estranger
 * @date 2025/9/1
 * description
 */
@Data
public class WxLoginRes extends LoginRes implements Serializable {
	private static final long serialVersionUID = 991275196387042282L;

	@ApiModelProperty(value = "用户类型 0: 超管; 1: 普通用户；2: 会员")
	private String userRole;

	@ApiModelProperty(value = "权限类型 0: 无权限; 1: 题库权限；2: 全部权限")
	private String perType;

	@ApiModelProperty(value = "头像")
	private String avatarUrl;

	@ApiModelProperty(value = "昵称")
	private String name;

	@ApiModelProperty(value = "手机号")
	private String userPhone;

	public WxLoginRes() {
	}

	public WxLoginRes(Integer userId, String openId, String accessToken, String refreshToken, String userRole, String perType, String avatarUrl, String name, String userPhone) {
		super(userId, openId, accessToken, refreshToken);
		this.userRole = userRole;
		this.perType = perType;
		this.avatarUrl = avatarUrl;
		this.name = name;
		this.userPhone = userPhone;
	}
}
